package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_standard_ruleset")
@Table(appliesTo = "mb_standard_ruleset", comment = "标准规则集合，规则ID关联的规则集合")
public class StandardRuleset extends BaseModel implements Serializable {
	
	private static final long serialVersionUID = 1514971032407128695L;

	/**
	 * 规则ID
	 */
	@ApiModelProperty(value = "规则ID")
	@Column(name = "rule_id", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '规则ID'")
	private String ruleId;

	/**
	 * 规则名称
	 */
	@ApiModelProperty(value = "规则名称")
	@Column(name = "rule_name", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '规则名称'")
	private String ruleName;

	/**
	 * 条件域
	 */
	@ApiModelProperty(value = "条件域")
	@Column(name = "condition_value", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '条件域'")
	private String conditionValue;

	/**
	 * 规则字段
	 */
	@ApiModelProperty(value = "规则字段")
	@Column(name = "rule_fields", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '规则字段'")
	private String ruleFields;

	/**
	 * 运算符
	 */
	@ApiModelProperty(value = "运算符")
	@Column(name = "operator", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '运算符'")
	private String operator;

	/**
	 * 值域
	 */
	@ApiModelProperty(value = "值域")
	@Column(name = "range_value", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '值域'")
	private String rangeValue;

	/**
	 * 值域类型
	 */
	@ApiModelProperty(value = "值域类型")
	@Column(name = "range_type", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '值域类型'")
	private String rangeType;
	
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@Column(name = "remark", columnDefinition = "varchar(200)  DEFAULT NULL COMMENT '备注'")
	private String remark;

}
